home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / mg2a_src.zip / SYSDEF.H < prev    next >
C/C++ Source or Header  |  1991-02-16  |  2KB  |  50 lines

  1. /*
  2.  * Name:    Mg 2a
  3.  *        MSDOS system header file (TurboC 1.5)
  4.  */
  5.  
  6. /* can't include these, the ANSI style prototypes conflict with the
  7.  * definitions in defs.h
  8.  */
  9. /* #include <stdlib.h> */
  10. /* #include <string.h> */
  11. /* #include <dir.h> */
  12. /* #include <stdio.h> */
  13. #define NULL    0L
  14.  
  15. #define    KBLOCK    1024            /* Kill grow.            */
  16. #define    GOOD    0            /* Good exit status.        */
  17. #define    MAXPATH    256            /* Maximum length of path for chdir */
  18.  
  19. #define LOCAL_VARARGS            /* use sys/default/varargs.h */
  20. #define DO_METAKEY            /* ALT acts like META */
  21. #define METABIT 0x200
  22. #define FKEYS                /* we have dedicated function keys */
  23. /* #define NO_DIRED */            /* dired works now */
  24. #define C_ALLOCA            /* used by regex, C version of alloca*/
  25.  
  26. typedef long    RSIZE;            /* Type for file/region sizes    */
  27. typedef short    KCHAR;            /* Type for internal keystrokes    */
  28. /* typedef short    KEY;        /* Type for internal keystrokes    */
  29.  
  30. /*
  31.  * Macros used by the buffer name making code.
  32.  * Start at the end of the file name, scan to the left
  33.  * until BDC1 (or BDC2, if defined) is reached. The buffer
  34.  * name starts just to the right of that location, and
  35.  * stops at end of string (or at the next BDC3 character,
  36.  * if defined). BDC2 and BDC3 are mainly for VMS.
  37.  */
  38. #define    BDC1    '/'
  39. #define    BDC2    '\\'
  40.  
  41. #define bcopy(s,d,n)    memcpy(d,s,n)    /* memory-to-memory copy    */
  42. #define bcmp(s1,s2,n)    memcmp(s2,s1,n) /* memory comparison        */
  43. #define bzero(s,n)    memset(s,0,n)    /* memory zero            */
  44.  
  45. #define fncmp    stricmp
  46. #define getwd(cwd)    getcwd(cwd,NFILEN) /* get current working dir    */
  47. extern char *getcwd();
  48.  
  49. #define MALLOCROUND(m)    (m+=7,m&=~7)    /* round up to 8 byte boundry    */
  50.